import { ResponseInterceptor } from './../../../interceptor/response/response.interceptor';
import { GoodsImageService } from './../../../service/goods-image/goods-image.service';
import { Controller, Get, Query, UseInterceptors } from '@nestjs/common';
import config from 'src/config/config';

@Controller(`${config.adminPath}/goodsImage`)
@UseInterceptors(ResponseInterceptor)
export class GoodsImageController {
    constructor(private readonly goodsImageService: GoodsImageService) {}
    @Get()
    async find(@Query() query) {
        return await this.goodsImageService.find(query);
    }
}
